﻿#ifndef LARGEFILEUPLOADCONTROLLER_H
#define LARGEFILEUPLOADCONTROLLER_H

#include <QJsonObject>
#include <httprequesthandler.h>
using namespace stefanfrings;

class LargeFileUploadController : public HttpRequestHandler
{
public:
    LargeFileUploadController(QObject *parent = nullptr);
    ~LargeFileUploadController();
    void service(HttpRequest &request, HttpResponse &response) override;

private:
    void getFileInfo(HttpRequest &request, HttpResponse &response);
    void uploadFileData(HttpRequest &request, HttpResponse &response);
};

#endif // LARGEFILEUPLOADCONTROLLER_H
